package com.dews.information.domain.dto;

import com.dews.common.utils.valid.AddGroup;
import com.dews.common.utils.valid.UpdateGroup;
import jakarta.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 专业课程管理对象Vo
 * 
 * @author qingfeng
 * @date 2024-12-08
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class SubjectCourseDTO {

    private static final long serialVersionUID = 1L;

    @NotNull(message = "主键ID不能为空", groups = {UpdateGroup.class})
    private Integer id;

    @NotNull(message = "学院Id不能为空", groups = {UpdateGroup.class})
    private Long depId;

    @NotNull(message = "专业不能为空", groups = {AddGroup.class, UpdateGroup.class})
    private Integer subjectId;

    @NotBlank(message = "课程代码不能为空", groups = {AddGroup.class, UpdateGroup.class})
    private String courseCode;

    @NotBlank(message = "课程名称不能为空", groups = {AddGroup.class, UpdateGroup.class})
    private String courseName;

    @NotBlank(message = "课程介绍不能为空", groups = {AddGroup.class, UpdateGroup.class})
    private String content;

    @NotNull(message = "课程教师不能为空", groups = {AddGroup.class, UpdateGroup.class})
    private List<Integer> courseTeacher;

    @NotNull(message = "是否启用不能为空", groups = {AddGroup.class, UpdateGroup.class})
    private Integer isEnable;




}
